package com.thingsgrid.notice.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
/**
 * SendEntiy
 * @author MQ
 */
@Data
@Document
public class SendEntiy extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "消息id")
    @Field("message_text_id")
    @JsonProperty("message_text_id")
    private String messageTextId;

    @ApiModelProperty(value = "接受者id")
    @Field("receiver_name")
    @JsonProperty("receiver_name")
    private String receiverName;

    @ApiModelProperty(value = "消息状态 0:未读,1:已读")
    private String status = "0";
    public SendEntiy(){

    }
    public SendEntiy(String receiverName){
        this.receiverName = receiverName;
    }
}
